package com.ruoyi.violate.mapper;

import java.util.List;
import com.ruoyi.violate.domain.ViolateWords;

/**
 * 违规词汇Mapper接口
 * 
 * @author 谭拓宇
 * @date 2022-12-03
 */
public interface ViolateWordsMapper 
{
    /**
     * 查询违规词汇
     * 
     * @param id 违规词汇主键
     * @return 违规词汇
     */
    public ViolateWords selectViolateWordsById(Long id);

    public  List<ViolateWords> selectViolateWordsListByLength();
    /**
     * 查询违规词汇列表
     * 
     * @param violateWords 违规词汇
     * @return 违规词汇集合
     */
    public List<ViolateWords> selectViolateWordsList(ViolateWords violateWords);

    /**
     * 新增违规词汇
     * 
     * @param violateWords 违规词汇
     * @return 结果
     */
    public int insertViolateWords(ViolateWords violateWords);

    /**
     * 修改违规词汇
     * 
     * @param violateWords 违规词汇
     * @return 结果
     */
    public int updateViolateWords(ViolateWords violateWords);

    /**
     * 删除违规词汇
     * 
     * @param id 违规词汇主键
     * @return 结果
     */
    public int deleteViolateWordsById(Long id);

    /**
     * 批量删除违规词汇
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteViolateWordsByIds(Long[] ids);

    /**
     * 一键去重
     * @return
     */
    public int distinctViolateWords() ;

    /**
     * 获得words的重复项
     * @return
     */
    public List<ViolateWords> selectViolateDistinctWordsList() ;
}
